package com.wskeee.ec.components.skin
{
	import com.wskeee.ec.styles.Icons;

	public class HScrollBarSkin extends BaseScrollBarSkin
	{
		//========================= redraw ========================
		override public function redraw():void
		{
			upArrowIcon = Icons.hScrollArrowUpIcon;
			downArrowIcon = Icons.hScrollArrowDownIcon;
			thumbIcon = Icons.hScrollThumbIcon;
			super.redraw();
		}
		
		//========================= validateDisplayList ========================
		override public function validateDisplayList():void
		{
			track.width = bar.width-upArrow.width-downArrow.width;
			track.height = bar.height;
			//重画宽度
			thumb.height = upArrow.height = downArrow.height = bar.height;
			super.validateDisplayList();
		}
		//========================= end =========================
	}
}